package student.control.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
         Button btnIniciarSesion = (Button)findViewById(R.id.button2);
        btnIniciarSesion.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                Toast.makeText(MainActivity.this, "hizo click", Toast.LENGTH_LONG).show();
                Intent intent = new Intent(MainActivity.this, Principal.class);
              startActivity(intent);
            }
        });
        
        
    }
    
    
}
